/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package metier.pojo;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Adrien
 */
public class Client {
    private final metier.entity.Client unclient;
    private List<metier.pojo.Compte> comptes;

    public Client(metier.entity.Client unclient){
        this.unclient = unclient;
        comptes = new ArrayList<metier.pojo.Compte> ();
        for (metier.entity.Compte c : unclient.getPossesseur()){
            comptes.add(new Compte(c));
        }
    }
    
    public Long getId() {
        return unclient.getId();
    }

    public String getNom() {
        return unclient.getNom();
    }

    public String getPrenom() {
        return unclient.getPrenom();
    }

    public String getEmail() {
        return unclient.getEmail();
    }

    public String getMotpasse() {
        return unclient.getMotpasse();
    }

    public int getEtat() {
        return unclient.getEtat();
    }

    public String getVille() {
        return unclient.getVille();
    }

    public Float getMontant() {
        return unclient.getMontant();
    }
   
    public List<metier.pojo.Compte> getComptes(){
        return comptes;
    }
    
    public void setComptes(List<Compte> liste_comptes)
    {
        comptes = liste_comptes;
    }
    
    
}
